<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Member_model extends CI_Model {

	function __construct()
	{
		parent::__construct();
	}
	
	public function ask_question($param)
	{
		$query = $this->db->insert('qa_questions', $param); 
		if( $this->db->insert_id() > 0 )
		{
			return array('insert_id' => $this->db->insert_id());
		}
		else
		{
			log_message('error','unable to submit question');
			return null;
		}
	}
}